import React from 'react';
import { Router} from 'dva/router';
import routes from './config/router.config';
import RouterView from './components/RouterView/index';

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <RouterView routes={routes} />
    </Router>
  );
}

export default RouterConfig;
